from news import models
from rest_framework.serializers import ModelSerializer

class CateSerializer(ModelSerializer):
  class Meta:
    model = models.Cate
    fields = '__all__'

class NewsSerializer(ModelSerializer):
  class Meta:
    model = models.News
    fields = '__all__'
